package com.auth.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author admin
 * @since 2022-01-31
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("token")
public class Token {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("access_token")
    private String accessToken;

    @TableField("refresh_token")
    private String refreshToken;

    @TableField("at_begin_time")
    private LocalDateTime atBeginTime;

    @TableField("rt_begin_time")
    private LocalDateTime rtBeginTime;

    @TableField("data")
    private String data;

    @TableField("create_time")
    private LocalDateTime createTime;


}
